package com.hjm.project.TransactionAccumulation.zlCashDetails.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.hjm.project.TransactionAccumulation.zlCashDetails.mapper.ZlCashDetailsMapper;
import com.hjm.project.TransactionAccumulation.zlCashDetails.domain.ZlCashDetails;
import com.hjm.project.TransactionAccumulation.zlCashDetails.service.IZlCashDetailsService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 增量返现明细Service业务层处理
 * 
 * @author maker-platform
 * @date 2021-07-07
 */
@Service
public class ZlCashDetailsServiceImpl implements IZlCashDetailsService 
{
    @Resource
    private ZlCashDetailsMapper zlCashDetailsMapper;

    /**
     * 查询增量返现明细
     * 
     * @param id 增量返现明细ID
     * @return 增量返现明细
     */
    @Override
    public ZlCashDetails selectZlCashDetailsById(Integer id)
    {
        return zlCashDetailsMapper.selectZlCashDetailsById(id);
    }

    /**
     * 查询增量返现明细列表
     * 
     * @param zlCashDetails 增量返现明细
     * @return 增量返现明细
     */
    @Override
    public List<ZlCashDetails> selectZlCashDetailsList(ZlCashDetails zlCashDetails)
    {
        return zlCashDetailsMapper.selectZlCashDetailsList(zlCashDetails);
    }

    /**
     * 新增增量返现明细
     * 
     * @param zlCashDetails 增量返现明细
     * @return 结果
     */
    @Override
    public int insertZlCashDetails(ZlCashDetails zlCashDetails)
    {
        return zlCashDetailsMapper.insertZlCashDetails(zlCashDetails);
    }

    /**
     * 修改增量返现明细
     * 
     * @param zlCashDetails 增量返现明细
     * @return 结果
     */
    @Override
    public int updateZlCashDetails(ZlCashDetails zlCashDetails)
    {
        return zlCashDetailsMapper.updateZlCashDetails(zlCashDetails);
    }

    /**
     * 删除增量返现明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZlCashDetailsByIds(String ids)
    {
        return zlCashDetailsMapper.deleteZlCashDetailsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除增量返现明细信息
     * 
     * @param id 增量返现明细ID
     * @return 结果
     */
    @Override
    public int deleteZlCashDetailsById(Integer id)
    {
        return zlCashDetailsMapper.deleteZlCashDetailsById(id);
    }
}
